﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;
using ZYHand.Utility;

namespace ZYHand.Repository
{
    public class MongodbHost
    {

        /// <summary>
        /// 连接字符串
        /// </summary>
        public  string Connection { get; set; } = AppSettingHelper.GetConfiguration().GetSection("MongoDB:ConnectionString").Value;
        /// <summary>
        /// 库
        /// </summary>
        public  string DataBase { get; set; } = AppSettingHelper.GetConfiguration().GetSection("MongoDB:DataBase").Value;
        /// <summary>
        /// 表
        /// </summary>
        public string Table { get; set; }
    }
}
